public class Test {
    // main方法
    public static void main(String[] args){
        //输出Hello
        System.out.println("hello");
        //声明一个int类型的变量
        int a;
        // 初始化a
        a = 10;
        // 输出a的值
        // a=10.1报错
        System.out.println("a="+a);
        int b;
        b = 15;
        System.out.println("b="+b);
        int c = b;
        System.out.println("c="+c);
    // 字符类型
    char c1 = 'a';
    char c2 = 'B';
    char c3 = '你';
    char c4 = '好';
    // char c5 ='';
    // char c6 ='abc';
    System.out.println("c1:" +c1);
    System.out.println("c2:" +c2);
    System.out.println("c3:" +c3);
    System.out.println("c4:" +c4);
    // System.out.println("c5:" +c5);
    // System.out.println("c6:" +c6);
    // int 字面值量可以赋值给char变量
    char c7 = 48;
    System.out.println("c7:" +c7);
    char c8 = 65;
    System.out.println("c8:" +c8);//A
    // 转义字符
    String s1 ="Hello,\"World\"!";
    System.out.println("s1:"+s1); 
    String s2 ="Hello,\"World\"!";
    System.out.println("s2:"+s2);
    String s3 ="Hello,\"World\"!";
    System.out.println("s3:"+s3); 
    System.out.println("C:\\Program Files\\Java\\jdk1.8.0_131\\bin");  
    
}
}

